﻿@{
    Layout = "~/Views/Shared/_TwoColunm.cshtml";
    }
@model  Bussiness.Entities.Users

<div>
    <span class="label label-success">@ViewBag.result</span>
</div>
@using (Html.BeginForm("EditUser", "Users", FormMethod.Post, new { @class="form-horizontal"}))
{

    @Html.HiddenFor(model => model.Id)
    <fieldset>
        
        <div class="control-group">
            <label class="control-label" for="Username">User Name</label>
            <div class="controls">
                @Html.TextBoxFor(model => model.UserName, new { id = "Username", @class = "span4" })
            </div>
        </div>
        <div class="control-group">
            <label class="control-label" for="Address">Address</label>
            <div class="controls">
                @Html.TextBoxFor(model => model.Address, new { id = "Address", @class = "span4" })
            </div>
        </div>
        <div class="control-group">
            <label class="control-label" for="Email">Email</label>
            <div class="controls">
                @Html.TextBoxFor(model => model.Email, new { id = "Email", @class="span4" })
            </div>
        </div>
        <div class="control-group">
            <label class="control-label" for="Birthday">Birthday</label>
            <div class="controls">
                @Html.TextBoxFor(model => model.Birthdate, new { id = "Birthday", @class = "span4" })
            </div>
        </div>
        <div class="control-group">
            <label class="control-label" for="Birthday">Birthday</label>
            <div class="controls">
            @Html.DropDownList("GroupID",string.Empty)
            </div>
        </div>
        <div class="groupbtn" style="padding-left:200px;">
            <input  type="submit" class="btn btn-primary" value="Update" style="padding:6px 10px"/>
            @Html.ActionLink("Cancel", "Users", null, new { @class="btn btn-info" })
        </div>
        
    </fieldset>

}
